package com.fl.niu.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 事件
 * @author qj
 */
@Data
@TableName("event")
public class Event implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 事件名
     */
    @TableField("name")
    private String name;
    /**
     * 触发key
     */
    @TableField("event")
    private String event;
    /**
     * 处理类
     */
    @TableField("listener")
    private String listener;
    /**
     * 开启
     */
    @TableField("is_enable")
    private Integer isEnable;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

}
